*** OPENBARCODES DLL ***

// V 1.0.0

// Copyright (C) 2006 (Grandzebu)

// Cette bibliothque est  libre, vous pouvez la redistribuer et/ou la modifier
// selon les termes de la Licence Publique Gnrale Amoindrie GNU (GNU LGPL)
// Veuillez charger une copie de la license  l'adresse : http://www.gnu.org/licenses/lgpl.html
// Une traduction non officielle se trouve  l'adresse : http://www.linux-france.org/article/these/licence/lgpl/lgpl_monoblock.html

// This library is free, you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License (GNU LGPL)
// Please download a license copy at : http://www.gnu.org/licenses/lgpl.html


*** Functions dfinitions for Visual Basic / Dfinitions des fonctions pour Visual Basic ***

Private Declare Function Code39 Lib "openbarcodes" (ByVal BufIn As String, ByVal SizeIn As Long, ByVal BufOut As String) As Long
Private Declare Function Ean13 Lib "openbarcodes" (ByVal BufIn As String, ByVal BufOut As String) As Long
Private Declare Function AddOn Lib "openbarcodes" (ByVal BufIn As String, ByVal SizeIn As Long, ByVal BufOut As String) As Long
Private Declare Function Ean8 Lib "openbarcodes" (ByVal BufIn As String, ByVal BufOut As String) As Long
Private Declare Function Code25I Lib "openbarcodes" (ByVal BufIn As String, ByVal SizeIn As Long, ByVal Key As Boolean, ByVal BufOut As String) As Long
Private Declare Function Code128 Lib "openbarcodes" (ByVal BufIn As String, ByVal SizeIn As Long, ByRef SizeOut As Long, ByVal BufOut As String) As Long


*** Functions dfinitions for C / Dfinitions des fonctions pour C ***

DWORD Code39(LPCTSTR BufIn, DWORD SizeIn, LPTSTR BufOut);
DWORD Ean13(LPCTSTR BufIn, LPTSTR BufOut);
DWORD AddOn(LPCTSTR BufIn, DWORD SizeIn, LPTSTR BufOut);
DWORD Ean8(LPCTSTR BufIn, LPTSTR BufOut);
DWORD Code25I(LPCTSTR BufIn, DWORD SizeIn, BOOL Key, LPTSTR BufOut);
DWORD Code128(LPCTSTR BufIn, DWORD SizeIn, LPWORD SizeOut, LPTSTR BufOut);


*** Parameters / Paramtres ***
BufIn : Pointer to a string to convert / Pointeur sur une chaine  convertir
SizeIn : Length of the BufIn string / Longueur de la chaine BufIn
BufOut : Pointer to the result string / Pointeur sur la chaine rsultat
Key : Add a checksum if true / Ajoute une somme de contrle si vrai
SizeOut : Pointer to the length of the result string / Pointeur sur la longueur de la chaine rsultat


*** Return values / Valeur de retour ***
-1 : Buffer for output string too small - Give to the buffer the size SizeOut and call again the function / Tampon pour la chaine de sortie trop petit - Donner au tampon la taille SizeOut et rappeler la fonction
0  : No error / Pas d'erreur
1  : Input string not allowed / Chaine d'entre non permise
